package com.zjitc.vo;

import com.zjitc.pojo.Product;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/14 15:18
 * @description:
 */
public class Inventory {
  private String pid;
  private Integer inventory;

  public Inventory(Product product) {
    this.inventory = product.getInventory();
    this.pid = product.getPid();
  }

  public Inventory(String pid, Integer inventory) {

    this.pid = pid;
    this.inventory = inventory;
  }

  public String getPid() {

    return pid;
  }

  public void setPid(String pid) {
    this.pid = pid;
  }

  public Integer getInventory() {
    return inventory;
  }

  public void setInventory(Integer inventory) {
    this.inventory = inventory;
  }

  public Inventory() {

  }
}
